#pragma once
#include <vector>
#include "SDL.h"
#include "Bitmap.h"
class World
{
public:
	int width, height, unit;
private:
	int padding = 2;
	int lineWidth = 1;
	SDL_Rect hor_line = { 0, 0, 800, lineWidth };
	SDL_Rect ver_line = { 0, 0, lineWidth, 500 };
	SDL_Rect box = { 0, 0, 0, 0 };
	void drawBlock(int x, int y);
public:
	std::vector<Bitmap> blocks[2];
	int currBlocks = 0;
	SDL_Renderer* renderer;
	World(int width, int height, int unit);
	void draw();
};